package com.pucong.gitee.database.backup.common.entity.database.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author pucong
 */
@Data
@ApiModel("api执行返回结果 page")
public class RunSqlResultPage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("回话id")
    private String sessionId;

    @ApiModelProperty("分页执行结果")
    private Page<Map<String,Object>> execResultMapPage = new Page<>();

    @ApiModelProperty("查询字段")
    private List<ResultFiledVo> filedList = new ArrayList<>();

    @ApiModelProperty("结果值")
    private BigDecimal resultInteger;

    @ApiModelProperty("执行耗时 毫秒")
    private Long execTime;

    @ApiModelProperty("执行sql")
    private String execSql;

    @ApiModelProperty("执行sql参数")
    private Object[] execSqlParams;
}
